package hy.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class C1 {
    //到view中找hello.html
    @RequestMapping("/hello")
    public void m1(){
        System.out.println("......");

    }
    //到view中找abc.html
    @RequestMapping("/m2")
    public String m2(){
        System.out.println("aaaaaaaaaaaa");
//        return "abc";
        return "redirect:hello";
    }
    @RequestMapping("/m3")
    public String m3(){
        System.out.println("m3....");
        return "hello";
    }


}
